package com.woniuxy.creditsystem.systemmag.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.creditsystem.common.bean.DataDictionaryInfo;
import com.woniuxy.creditsystem.common.bean.PageRequest;
import com.woniuxy.creditsystem.common.bean.ProcessModelInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface IProcessModelService {
    /**
     * 分页查询
     * @Param request 分页所要的参数数据 data 数据字典
     * @Authod liaojian
     * */
    PageInfo<ProcessModelInfo> findAllByParams(PageRequest request, ProcessModelInfo pro);

    /**
     * 新增数据
     * @Author liaojian
     * */
    int save(ProcessModelInfo pro);

    /**
     * 修改数据
     * @Author liaojian
     * */
    int update(ProcessModelInfo pro);

    /**
     * 删除数据
     * @Author liaojian
     * */
    int delete(long id);

    /**
     * 从Excel中导入数据
     * @Author liaojian
     * */
    int saveList(MultipartFile file) throws IOException;

}
